package main;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import adminLogic.MockAdminLogic;

import logicInterface.AdminLogicInterface;
import components.MyFrame;

public class Main {
	private static MyFrame mf;
	private static AdminLogicInterface logic;

	public static void main(String[] args) {
		try {
			logic=(AdminLogicInterface) Naming.lookup("rmi://localhost:8888/adminLogic") ;
		} catch (MalformedURLException | RemoteException | NotBoundException e) {
			e.printStackTrace();
		}
		mf=new MyFrame();
	}

	public static MyFrame getMf() {
		return mf;
	}

	public static AdminLogicInterface getLogic() {
		return logic;
	}

}
